package view;

import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;

import model.Debate;

import view.clock_panel.ClockPanel;
import view.list_panel.ListPanel;

public class DisplayFrame {
	private JFrame frame;
	private JPanel container;
	
	private ClockPanel clockPanel;
	private ListPanel listPanel;

	public DisplayFrame(Debate debate) {
		frame = new JFrame();
		container = new JPanel(new GridLayout(1,2));

		clockPanel = new ClockPanel(debate);
		listPanel = new ListPanel(debate);
		
		container.add(listPanel);
		container.add(clockPanel);
		

		frame.getContentPane().add(container);
		
		frame.setSize(486, 648);
		frame.setVisible(true);
		frame.setTitle("le debate");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
}
